/*
 * @Author: 肖思汗 
 * @Date: 2025-08-23 17:29:43 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2025-08-23 17:30:12
 */

import { observer } from "mobx-react-lite";
import langStore from './langStore';

interface Iprops {
    key: keyof typeof langStore.langJSON;
    className?: string
}

// 多语言组件
const Lang = observer((props: Iprops) => {
    return (
        <span className={props.className}>{langStore.getMessage(props.key)}</span>
    );
});

export default Lang;